from pyecharts import options as opts
# -*- coding: utf-8 -*-
from pyecharts.charts import Pie
from pyecharts.faker import Faker
lst=[['华为',1000],['OPPO',600],['iphone',500],['小米',980]]
c=(
    Pie()
    .add('',lst)
    .set_global_opts(title_opts=opts.TitleOpts(title='2025年北京手机出库手机占比'))
    .set_series_opts(label_opts=opts.LabelOpts(formatter='{b}:{c}'))
    .render('phone.html')
)